
package com.hc.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.hc.dao.IOfferDao;
import com.hc.domain.Offer;
import com.hc.service.IOfferService;
@Service("offerService")
public class OfferServiceImpl implements IOfferService {
	@Resource
	private IOfferDao offerDao;

	@Override
	public List<Offer> findByCateId(int id) {
		return offerDao.findByCateId(id);
		
	}

	@Override
	public void save(Offer o) {
		offerDao.saveOffer(o);
	}

	@Override
	public Offer getById(int id) {
		return offerDao.getById(id);
		
	}

	@Override
	public void update(Offer o) {
		offerDao.updateOffer(o);
	}
}

